package com.tao.clients;

import com.tao.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 86130
 * 购物车调用
 */
@FeignClient("cart-service")
public interface CartClient {
    /**
     * 检查购物车中是否有商品
     * @param productId
     * @return
     */
    @PostMapping("cart/remove/check")
    R check(@RequestBody Integer productId);
}
